way to derive the quadratic formula